package first.codeTop.tencent;

/**
 * @ClassName LC104
 * @description:
 * @author: 荣燊
 * @create: 2021-10-28 16:18
 **/
public class LC104 {
    public static void main(String[] args) {

    }

    public int maxDepth(TreeNode root) {
        if (root == null) {
            return 0;
        }
        return Math.max(maxDepth(root.right),maxDepth(root.left))+1;
    }
}
